import { createStore } from "vuex";
const store = createStore({
  // 数据存储
  state() {
    return {
      theme: "#1e90ff",
    };
  },
  // 方法
  mutations: {
    themeChange(store, val) {
      store.theme = val;
    },
  },
});
export default store;
